<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
	<f:loadBundle var="messages" basename="messages" />

	<head>

	<!--// documentation resources //-->
	<script src="../jquery.js" type="text/javascript"></script>
	<script src="../documentation.js" type="text/javascript"></script>
	<link href="../documentation.css" type="text/css" rel="stylesheet" />
	<!--// plugin-specific resources //-->
	<script src="../jquery.form.js" type="text/javascript"
		language="javascript"></script>
	<script src="../jquery.MetaData.js" type="text/javascript"
		language="javascript"></script>
	<script src="../jquery.rating.js" type="text/javascript"
		language="javascript"></script>


	<title>#{messages['avaliacaoForm.title']}</title>
	<style type="text/css">
.jscalendar-DB-div-style {
	position: absolute;
	margin-top: -69px;
	margin-left: -408px;
}
</style>
	</head>

	<h:messages errorClass="error" layout="table" style="width: 100%" />



	<h:form id="avaliacaoForm2">
		<h:inputHidden value="#{avaliacaoForm.avaliacao.id}">
			<f:convertNumber />
		</h:inputHidden>

		<h:panelGrid columns="3" styleClass="detail" columnClasses="label">

			<h:outputLabel value="Conteudo" for="conteudoTitulo" />

			<h:outputText value="#{avaliacaoForm.conteudo.titulo}" />

      <br/><br/>
      
      		<h:outputLabel value="Conteudo" for="conteudoTitulo" />
			<h:selectOneListbox id="conteudoTitulo" required="false" size="1"
				requiredMessage="Informe o Conteudo!"
				value="#{avaliacaoForm.conteudoId}">
				<f:selectItems value="#{avaliacaoForm.listaDeConteudos}" />
			</h:selectOneListbox>
		<br/>
			<h:outputLabel for="nota" value="#{messages['avaliacao.nota']}">
			</h:outputLabel>

			<h:selectOneRadio id="nota" value="#{avaliacaoForm.avaliacao.nota}">
				<f:selectItem itemLabel="1" styleClass="star" itemValue="1" />
				<f:selectItem itemLabel="2" styleClass="star" itemValue="2" />
				<f:selectItem itemLabel="3" styleClass="star" itemValue="3" />
				<f:selectItem itemLabel="4" styleClass="star" itemValue="4" />
				<f:selectItem itemLabel="5" styleClass="star" itemValue="5" />
			</h:selectOneRadio>

			<h:message for="nota" styleClass="errorMessage" />

			<h:panelGroup>
				<h:commandButton value="Salvar"
					action="#{avaliacaoForm.saveSession}" id="saveSession"
					styleClass="button" />
				<c:if test="${not empty avaliacaoForm.id}">
					<h:commandButton value="Delete" action="#{avaliacaoForm.delete}"
						id="delete" styleClass="button" />
				</c:if>
				<h:commandButton value="Cancel" action="cancel" immediate="true"
					id="cancel" styleClass="button" />
			</h:panelGroup>
		</h:panelGrid>
	</h:form>

	<script type="text/javascript">
    Form.focusFirstElement(document.forms['avaliacaoForm2']);
</script>

</f:view>
</html>